//
//  ViewController.swift
//  TestSwiftApp
//
//  Created by China Dragon on 2023/8/25.
//

import UIKit

class ViewController: UIViewController {

    @IBAction func butnClick(_ sender: Any) {
        print("hello world 执行了 butnClick")
    }
    override func viewDidLoad() {
        super.viewDidLoad()
        //纯代码创建视图
        let v = DemoUIView(frame: CGRect(x: 20, y: 400, width: 300, height: 200))
        v.backgroundColor = UIColor.red
        view.addSubview(v)
    }


}

